{template 'ushop/member', 'header'}
<div style="width:1200px; margin:auto; overflow:hidden;">
    <form name="form1" method="post" action="" id="form1">
        <div class="Main">
            <div id="Position" class="margin_b6" style="height:25px; line-height:25px; margin-bottom:1px;"> <a href="{APP_PATH}index.php?m=ushop">首页</a>&nbsp;&gt;&nbsp;<a href="{APP_PATH}index.php?m=member&c=index">我的ushop</a>&nbsp;&gt;&nbsp;<span>账户信息</span></div>
            <div class="right">
                <table class="table_a marginb10" style=" width:100%;">
                    <tr>
                        <th colspan="6" align="left" ><strong style="font-size:14px;">我的退款</strong> </th>
                    </tr>
                    <tr class="align_Center">
                        <td width="16%"><strong>退款方式</strong></td>
                        <td width="16%"><strong>退款金额</strong></td>
                        <td width="16%"><strong>涉及订单</strong></td>
                        <td width="16%"><strong>申请时间</strong></td>
                        <td><strong>处理状态</strong></td>
                        <td width="10%"><strong>操作</strong></td>
                    </tr>
                    {if empty($infos)}
                    <tr class="align_Center">
                        <td colspan="7" style="text-align:center"><span style="color:red;">暂无申请记录</span></td>
                    </tr>
                    {else}
                    {loop $infos $data}
                    <tr>
                        <td align="center"> {if $data['back_pay'] == 0}退款至账户余额
                            {elseif $data['back_pay'] == 1}退款至银行卡
                            {elseif $data['back_pay'] == 2}原路返回
                            {/if} </td>
                        <td align="center">{$data['theTotalAmount']}</td>
                        <td align="center">{$data['order_sn']}</td>
                        <td align="center">{date('Y-m-d',$data['back_time'])}</td>
                        <td align="center"> {if $data['back_status'] == 0}处理中
                            {elseif $data['back_status'] == 1}已处理
                            {/if} </td>
                        <td align="center"><a href="index.php?m=ushop&c=user&a=delete_back_order&back_id={$data['order_id']}">删除</a></td>
                    </tr>
                    {/loop}
                    {/if}
                </table>
                <table class="table_c marginb10">
                    <tr>
                        <th align="left"> <strong>退款申请</strong> </th>
                    </tr>
                    <tr>
                        <td class="table_wrap"><table width="100%">
                                <tr>
                                    <td align="right" height="33"><strong>订单号码</strong>： </td>
                                    <td><input type="text" id="txtOrdId" class="w130" name="info[order_sn]" />(请输入产生退款的订单号,一次退款申请只能输入一个订单号)</td>
                                </tr>
                                <tr>
                                    <td align="right" height="33"><strong>申请人姓名</strong>： </td>
                                    <td><input type="text" value="" id="txtName" class="w130" name="info[applicant]" /></td>
                                </tr>
                            </table></td>
                    </tr>
                    <tr>
                        <td height="60" class="table_wrap"><table width="100%">
                                <tr>
                                    <td width="15%" align="right" valign="top"><strong>退款方式</strong>： </td>
                                    <td>
                                    <ul style="line-height: 20px" id="ulContent">
                                        <li>
                                            <input type="radio" value="0" name="info[back_pay]" style="cursor: pointer;" id="radAccount" checked />
                                            退款至账户余额（<span style="color: #ff6600;">推荐</span>，不会收取手续费，今后可随时将账户余额退至银行卡） 
                                        </li>
                                        <li id="libank">
                                            <input type="radio" value="1" name="info[back_pay]" style="cursor: pointer;" id="radbank" />
                                            退款至银行卡（跨行退款需要扣除一定积分用以支付银行手续费） 
                                        </li>
                                        <li id="liroad">
                                            <input type="radio" value="2" name="info[back_pay]" style="cursor: pointer;" id="radRoad" />
                                            原路返回（按照您原来支付的方式进行原路返回退款） 
                                        </li>
                                    </ul>
                                    </td>
                                </tr>
                            </table></td>
                    </tr>
                    <tr id="trContent">
                        <td class="table_wrap"><table width="100%">
                                <tr>
                                    <td width="15%" height="26" align="right"><strong>申请原因</strong>： </td>
                                    <td><textarea rows="4" cols="10" class="w370" id="txtreason" name="info[back_cause]" style="width:280px;"></textarea></td>
                                </tr>
                                <tr>
                                    <td width="15%" height="26" align="right" valign="top"><strong>验证码</strong>：</td>
                                    <td><input type="text" id="code" name="code" size="10" class="input-text">
                                        {form::checkcode('code_img', '4', '14', 80, 24)} </td>
                                </tr>
                                <tr>
                                    <td height="40"></td>
                                    <td id="tdSumit"><input id="dosubmit" value="确认提交" class="btn-text" type="submit" name="dosubmit" /></td>
                                </tr>
                            </table></td>
                    </tr>
                </table>
            </div>
            <!--[if !IE]>正文右部结束<![endif]--> 
            {template 'ushop/member', 'left'} </div>
    </form>
</div>
<div class="clear"></div>
{template 'ushop', 'footer'}